import request from '@/utils/request'

// 查询危废申报列表
export function listWasteDeclare(query) {
    return request({
        url: '/business/wasteDeclare/list',
        method: 'get',
        params: query
    })
}

// 查询危废申报详细
export function getWasteDeclare(wasteDeclareId) {
    return request({
        url: '/business/wasteDeclare/' + wasteDeclareId,
        method: 'get'
    })
}

// 新增危废申报
export function addWasteDeclare(data) {
    return request({
        url: '/business/wasteDeclare',
        method: 'post',
        data: data
    })
}

// 修改危废申报
export function updateWasteDeclare(data) {
    return request({
        url: '/business/wasteDeclare',
        method: 'put',
        data: data
    })
}

// 删除危废申报
export function delWasteDeclare(wasteDeclareId) {
    return request({
        url: '/business/wasteDeclare/' + wasteDeclareId,
        method: 'delete'
    })
}

// 导出危废申报
export function exportWasteDeclare(query) {
    return request({
        url: '/business/wasteDeclare/export',
        method: 'get',
        params: query
    })
}